package com.java.module.quartz.util.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.java.common.utils.StringUtils;

/**
 * 定时任务调度测试
 * 
 * @author Administrator
 */
@Component("demoTask")
public class DemoTask {

    private static final Logger LOG = LoggerFactory.getLogger(DemoTask.class);

    public void runDemoTask(String s, Boolean b, Long l, Double d, Integer i) {
        LOG.debug(StringUtils.format("执行多参方法： 字符串类型{}，布尔类型{}，长整型{}，浮点型{}，整形{}", s, b, l, d, i));
    }

    public void runParams(String params) {
        LOG.debug("执行有参方法：" + params);
    }

    public void runNoParams() {
        LOG.debug("执行无参方法");
    }

}